package com.mini.spring.beanfactory;

/**
 * @author: 屠一乐
 * @date: 2023/8/20 16:59
 * @description:
 */

import com.mini.spring.BeansException;

/**
 * bean容器
 */
public interface BeanFactory {

    /**
     * 获取bean
     *
     * @param name
     * @return
     * @throws BeansException bean不存在时
     */
    Object getBean(String name) throws BeansException;

    Object getBean(String name, Object... args) throws BeansException;
}

